View Issue Details

IDProjectCategoryView StatusLast Update
0001572K18X001.00 SKB SWANSWpublic2023-04-11 15:27
Reporter(ALTech) Sangmin Choi Assigned To(ALTech) Sangmin Choi Due Date2022-12-14 10:14
PrioritynormalSeveritys4-minorReproducibilityalways
Status closedResolutionfixed 
Summary0001572: About zram_swap file.
DescriptionThere is a file in /data/unencrypted/zram_swap.
It consumed 512MB of data partition.

I asked to Synaptics about zram_swap file, for conclusion, the zram_swap file is not necessary.
Please refer to the below Synaptics Jira.
https://synacsm.atlassian.net/servicedesk/customer/portal/173/CSMSKBSBLT-200

The reason why I create this ticket, even I modified the fstab, the /data/unencrypted/zram_swap was not deleted.

I think the Android framework create the zram_swap file refer to the fstab.
But, the Android framework does NOT delete the zram_swap file refer to the fstab.

So, please implement the following procedure.

during booting time,
    zram_loopback_path is exist in fstab,
        do nothing, the Android framework will create the zram_swap file.
    zram_loopback_path is NOT exist in fstab,
        if /data/unencrypted/zram_swap is exist,
            delete /data/unencrypted/zram_swap
        if /data/unencrypted/zram_swap is NOT exist,
            do nothing

Of course, this is my suggestion, please prepare this solution.
If Synaptics suggest any guide for deleting zram_swap file, let's check which solution is better.
Additional Informationhttps://jira.skbroadband.com/browse/BPM-11947
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) Wooshin Kang

Activities

(ALTech) Sangmin Choi

2022-12-07 09:29

developer   ~0011413

Hi, Jacky,

Could you please assign an engineer for this ticket?

Thank you.

(ALTech) Sangmin Choi

2022-12-07 09:39

developer   ~0011417

FYI, the diff for fstab is as follow.

device/synaptics/sequoia/fstab.a.sequoia.29

-/dev/block/zram0 none swap defaults zramsize=1073741824,max_comp_streams=4,zram_loopback_path=/data/unencrypted/zram_swap,zram_loopback_size=512M
+/dev/block/zram0 none swap defaults zramsize=1073741824,max_comp_streams=4

(SW) Jim Chen

2022-12-15 17:38

developer   ~0011497

Hi Sangmin,

the code is committed, you can check the FW in 0001496:0011480 or the daily build tonight

(ALTech) Sangmin Choi

2023-04-11 15:27

developer   ~0012811

The issue has been resolved as we have confirmed that the zram_swap file has been successfully deleted.

Issue History

Date Modified Username Field Change
2022-12-07 09:27 (ALTech) Sangmin Choi New Issue
2022-12-07 09:27 (ALTech) Sangmin Choi Status new => assigned
2022-12-07 09:27 (ALTech) Sangmin Choi Assigned To => (SW) Jacky Chiang
2022-12-07 09:29 (ALTech) Sangmin Choi Note Added: 0011413
2022-12-07 09:39 (ALTech) Sangmin Choi Note Added: 0011417
2022-12-12 10:07 (SW) Jim Chen Assigned To (SW) Jacky Chiang => (SW) Dean Chiang
2022-12-14 14:13 (ALTech) Sangmin Choi Issue Monitored: (ALTech) Wooshin Kang
2022-12-15 17:38 (SW) Jim Chen Note Added: 0011497
2023-04-11 15:26 (ALTech) Sangmin Choi Assigned To (SW) Dean Chiang => (ALTech) Sangmin Choi
2023-04-11 15:27 (ALTech) Sangmin Choi Note Added: 0012811
2023-04-11 15:27 (ALTech) Sangmin Choi Status assigned => closed
2023-04-11 15:27 (ALTech) Sangmin Choi Resolution open => fixed